package com.example.demo.design.strategy_pattern;

/**
 * @Author: liull
 * @Description: 学生打折方式：八折
 * @Date: Created in 17:59 2020/11/18
 * @Modified By:
 */
public class StudentDiscount implements Discount {
    @Override
    public double calculate(double price) {
        System.out.println("学生票：");
        return 0.8 * price;
    }
}
